package top.xiesen.testabstract;

public abstract class Animal {
	public abstract void run();	//抽象方法的意义：把设计与实现分离
	public void breath(){
		System.out.println("呼吸");
	}
	public void Animal(){
		System.out.println("创建一个动物");
	}
}

class Cat extends Animal{

	@Override
	public void run() {
		System.out.println("猫步小跑........");
	}
}

class Dog extends Animal{

	@Override
	public void run() {
		System.out.println("小狗跑步........s");
	}
	
}